import request from '@/utils/request'

import type {GetTrademarkListApiResponse,TrademarkList} from './model/trademarkModel'

// 枚举定义接口
enum Api{
    getTrademarkList = '/admin/product/baseTrademark',
    getAllTrademarkList = "/admin/product/baseTrademark/getTrademarkList",
}

// 获取品牌分页列表------(一页多少个，总页数)
export const getTrademarkListApi = (page:number,limit:number)=>{
    return request.get<any,GetTrademarkListApiResponse>(`${Api.getTrademarkList}/${page}/${limit}`)
}

// 获取所有品牌列表
export const getAllTrademarkListApi = ()=>{
    return request.get<any,TrademarkList>(Api.getAllTrademarkList)
}